<template>
    <div class="container">
        <div class="cont-bg">
            <img src="@/assets/bg.png" alt="" class="bg">
        </div>
        <div class="cont">
            <inform/>
            <div class="sign">恭喜您答对全部题目！获得一次抽奖机会！</div>
            <div class="middle">
              <img src="@/assets/bottom.png" alt="" class="bot-img">
              <img src="@/assets/top1.png" alt=""  class="top-img">
              <div class="start" @click="show = true"></div>
              <div class="prise">
                  <div class="leve">一等奖</div>
                  <div class="name">海底捞50元代金券</div>
              </div>
              <div class="residue">剩余次数:3</div>
            </div>
            <div class="rule">
                <div class="title">
                    <div class="border"></div>
                    <div class="wz">规则说明</div>
                    <div class="border"></div>
                </div>
                <div  class="list">·答题全部正确才可抽奖, 当日抽奖次数次日清零；</div>
                <div  class="list">·每日更新奖品赞助商，中奖率为100%</div>
                <div  class="list">·获奖后可在首页-我的奖品中查看兑奖说明</div>
                <div  class="list">·请注意奖品的使用有效期，避免过期</div>
            </div>
            <div class="fix" v-show="show" @click="show = false" >
                <div class="cont-tk">
                    <div class="title">恭喜中奖!<br/>请在首页-我的奖品中查看详情</div>
                    <img src="@/assets/close.png" alt="" class="close">
                </div>
            </div>
        </div>
          
    </div>
</template>
<script>
import inform from '@/components/inform'
export default {
    components:{
        inform:inform
    },
    data() {
    return {
      show: false
    };
  }
}
</script>
<style lang="less" scoped>
.container{
    width: 100%;
    height: 100vh;
    .cont-bg{
        position: absolute;
        left: 0;
        top: 70px;
        .bg{
        width: 100%;
         }
    } 
    .cont{
        width: 95%;
        position: relative;
        padding: 15px 0;
        margin:-35px auto 0;
        .sign{
            border: 2px solid #FFD737;
            border-radius: 5px;
            box-sizing: border-box;
            color: #fff;
            font-size: 16px;
            background: #D72936;
            width: 100%;
            margin: 0 auto;
            text-align: center;
            padding: 10px 0;
            margin-top: 5%;
        }
        .middle{
            position: relative;
            img{
                width: 100%;
            }
            .top-img{
                position: absolute;
                top:0;
                left: 0;
            }
            .start{
                border:1px solid;
                position: absolute; 
                top: 81vw;
                width: 220px;
                left: 70px;
                height: 37px;
            }
            .prise{
                position: absolute;
                text-align: center;
                left: 50%;
                top: 42%;
                transform: translate(-50%, -0);
                .leve{
                    font-size: 16px;
                    color: #D72936;
                }
                .name{
                    color: #000;
                    font-size: 18px;
                    padding-top: 10px;
                }
            }
            .residue{
                text-align: center;
                position: absolute;
                left: 50%;
                top: 83%;
                transform: translate(-50%, -0);
                color: #fff;
                font-size: 14px;
                } 
        }
        .rule{
            color: #fff;
            font-size:14px;
            width: 90%;
            margin: 0 auto;
            .title{
                text-align: center;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: 5%;
                .border{
                    width: 100px;
                    height: 1px;
                    background: #fff;
                }
                .wz{
                    margin: 0 10px;
                    font-size: 16px;
                }
                
            }
            .list{
                    padding: 3px 0;
                }
        }
        
    } 
      .fix{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,.7);
        z-index: 99;
        .cont-tk{
            position: absolute;
            width: 80%;
            transform: translate(-50%,-50%);
            top:50%;
            left: 50%;
            background-color: #FFD737;
            img{
                width: 100%;
            }
            .close{
                width: 15%;
                top: 180px;
                left: 43%;
                position: absolute;
            }
            .title{
                padding:50px 40px;
                font-weight: bold;
                text-align: center;
            }
        }
  } 
}
</style>